﻿using System;
using System.Threading;
using SZipHandler;

namespace SZipConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Start");

            Console.WriteLine();
            Console.WriteLine("Press [Key] to Start!");
            Console.ReadKey();

            var worker = new Worker();
            var th = new Thread(worker.Work);
            th.Start();

            Console.WriteLine();
            Console.WriteLine("Press [Key] to Exit!");
            Console.ReadKey();

            worker.End = true;
        }
    }
}
